package com.xyzwps.server.paimon.model.table

import com.xyzwps.server.paimon.model.entity.User
import org.jetbrains.exposed.v1.core.dao.id.LongIdTable
import org.jetbrains.exposed.v1.datetime.CurrentTimestamp
import org.jetbrains.exposed.v1.datetime.timestamp

object UserTable : LongIdTable("user") {
    val nickname = varchar("nickname", User.NICK_NAME_MAX_LENGTH)
    val phone = varchar("phone", User.PHONE_MAX_LENGTH).uniqueIndex("uk_phone")
    val createdAt = timestamp("created_at").defaultExpression(CurrentTimestamp)
}